package com.homework9;

import java.io.FileNotFoundException;
import java.io.PrintStream;
import java.util.Scanner;

public class demo {
    public static void main(String[] args) throws FileNotFoundException {
           PrintStream printStream = new PrintStream("D:\\d.txt");
           System.setOut(printStream);
        Scanner scanner = new Scanner(System.in);
        System.out.println(scanner.nextLine());
        printStream.close();
    }
    }
